package cn.bdqn.service.impl;

import cn.bdqn.dao.BankMapper;
import cn.bdqn.dao.BannerMapper;
import cn.bdqn.pojo.Bank;
import cn.bdqn.pojo.Banner;
import cn.bdqn.service.BankService;
import cn.bdqn.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 正文
 * @date 2020/6/25 - 11:04
 */
//banner图
@Service
public class BannerServiceImpl implements BannerService {
    @Autowired
    private BannerMapper bannerMapper;

    @Override
    public List<Banner> getList() {

        return bannerMapper.getList();
    }

    @Override
    public int add(Banner banner) {

        return bannerMapper.add(banner);
    }

    @Override
    public List<Banner> getListById(int id) {

        return bannerMapper.getListById(id);
    }

    @Override
    public int delete(int id) {

        return bannerMapper.delete(id);
    }

    @Override
    public int update(Banner banner) {

        return bannerMapper.update(banner);
    }
}
